<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../../attr.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<link rel="stylesheet" href="${ctx}/css/sapar.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/css/common.css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/sapar.js"></script>
<script type="text/javascript" src="${ctx}/js/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/assets/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/assets/laydate/laydate.js"></script>

<title>员工编辑管理</title>
<style type="text/css">
.kv-item label{
	width: 150px;
}
.iselect-wrapper{
	float: left;
	margin-right: 5px;
	width: 245px!important;
}

.iselect-wrapper,.iselect{
	width:245px!important;
}
.xuanzhong{
color: red;

}
.login-times{
	margin:10px;
	color: #333;
	font-family: '微软雅黑';
	font-size: 13px;
}
.login-times li{
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
}
#flex{display:flex;justify-content:space-around;}
.kv-item input[type=datetime]{
     width: 250px;
    height: 28px;
    border-width: 1px;
    border-style: solid;
    border-left-color: #c5c5c5;
    border-top-color: #c5c5c5;
    border-right-color: #e0e0e0;
    border-bottom-color: #e0e0e0;
    outline: none;
    /* background: url(../img/skin_/inputbg.png); */
    padding: 0 10px;
}
</style>
</head>

<body>
	<div id="saper-container">
		<div id="saper-hd"></div>
		<div id="saper-bd">
			<div class="subfiled clearfix">
				<h2>员工信息编辑</h2>
			</div>
			<div class="subfiled-content">

				<form class="saper-form" id="dataForm" method="POST">
					<div class="tab-container" data-trigger="click">
						<div class="tab">
							<a href="javascript:;" class="current">基本信息</a> <a
								href="javascript:;">权限信息</a>
						</div>
						<div class="tab-content">
							<div class="tab-content-item" id="flex">
								<div id="aaa1">
								    <div class="kv-item clearfix">
										<label><span class="impInfo">*</span>员工姓名：</label>
										<div class="kv-item-content">
											<input name="employeeId" type="hidden" id="employeeId"
												   type="text"
												   value="${emp.employeeId}"
												   >
											<input name="employeeName" id="employeeName"
												class="txt_required" placeholder="员工姓名" type="text"
												value="${emp.employeeName}"
												>
										</div>
									</div>
								<div class="kv-item clearfix">
									<label>员工英文简称(自动生成)：</label>
									<div class="kv-item-content">
										<input name="employeeCode" id="employeeCode"
											class="txt_required" placeholder="员工英文简称" type="text"
											value="${emp.employeeCode}" readonly="readonly">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>员工登录名：</label>
									<div class="kv-item-content">
										<input name="employeeLoginname" id="employeeLoginname"
											class="txt_required" placeholder="员工登录名" type="text"
											value="${emp.employeeLoginname}"
											>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>登陆密码：</label>
									<div class="kv-item-content">
										<input name="employeePassword" id="employeePassword"
											placeholder="登陆密码" type="password" value="${emp.employeePassword}">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>出生日期 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeeBirthday" id="employeeBirthday"
											placeholder="出生日期" readonly="readonly" value="<fmt:formatDate value='${emp.employeeBirthday}' type='date' pattern='yyyy-MM-dd'/>">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>政治面貌 ：</label>
									<div class="kv-item-content">
										<input name="employeePoliticalOutlook" id="employeePoliticalOutlook" placeholder="政治面貌"
											type="text" value="${emp.employeePoliticalOutlook}">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>来院工作时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeeArrivehospitalDate" id="employeeArrivehospitalDate"
											placeholder="来院工作时间" readonly="readonly" value="<fmt:formatDate value='${emp.employeeArrivehospitalDate}' type='date' pattern='yyyy-MM-dd'/>">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>来我科工作时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeeArrivedeptDate" id="employeeArrivedeptDate"
											placeholder="来我科工作时间 " readonly="readonly" value="<fmt:formatDate value='${emp.employeeArrivedeptDate}' type='date' pattern='yyyy-MM-dd' />">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>毕业时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeeGraduationTime" id="employeeGraduationTime"
											placeholder="毕业时间" readonly="readonly" value="<fmt:formatDate value='${emp.employeeGraduationTime}' type='date' pattern='yyyy-MM-dd' />">
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>晋升时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeePromotionTime" id="employeePromotionTime"
											placeholder="晋升时间" readonly="readonly"  value="<fmt:formatDate value='${emp.employeePromotionTime}' type='date' pattern='yyyy-MM-dd' />">
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>聘用时间 ：</label>
									<div class="kv-item-content">
										<input type="datetime"
											onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
											name="employeeEmployTime" id="employeeEmployTime"
											placeholder="聘用时间 " readonly="readonly" value="<fmt:formatDate value='${emp.employeeEmployTime}' type='date' pattern='yyyy-MM-dd' />" >
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>毕业学校 ：</label>
									<div class="kv-item-content">
										<input name="employeeGraduateSchool" id="employeeGraduateSchool" placeholder="毕业学校"
											 value="${emp.employeeGraduateSchool}" type="text" >
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>用工形式 ：</label>
									<div class="kv-item-content">
										<select autocomplete="off" class="empty" id="employeeEmploymentForm" name="employeeEmploymentForm" >
											<!-- <option value="人事代理">人事代理</option>
											<option value="合同">合同</option> -->
											<option
												<c:if test="${emp.employeeEmploymentForm=='人事代理'}">selected="true" </c:if> value="人事代理">人事代理</option>
											<option
												<c:if test="${emp.employeeEmploymentForm=='合同'}">selected='true'</c:if> value="合同">合同</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>英语 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeCetGrade" name="employeeCetGrade">
											<!-- <option value="CET3">CET3</option>
											<option value="CET4">CET4</option>
											<option value="CET6">CET6</option>
											<option value="无">无</option> -->
											<option
												<c:if test="${emp.employeeCetGrade=='CET3'}">selected='true'</c:if> value="CET3">CET3</option>
											<option
												<c:if test="${emp.employeeCetGrade=='CET4'}">selected='true'</c:if> value="CET4">CET4</option>
											<option
												<c:if test="${emp.employeeCetGrade=='CET6'}">selected='true'</c:if> value="CET6">CET6</option>
											<option
												<c:if test="${emp.employeeCetGrade=='无'}">selected='true'</c:if> value="无">无</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>岗位状态 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeePostStatus" name="employeePostStatus">
											<!-- <option value="1">在岗</option>
											<option value="2">离职</option> -->
											<option
												<c:if test="${emp.employeePostStatus==1}">selected='true'</c:if> value="1">在岗</option>
											<option
												<c:if test="${emp.employeePostStatus==2}">selected='true'</c:if> value="2">离职</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>职称 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeWorkers" name="employeeWorkers">
											<!-- <option value="护师">护师</option>
											<option value="护士">护士</option> -->
											<option
												<c:if test="${emp.employeeWorkers=='护士'}">selected='true'</c:if> value="护士">护士</option>
											<option
												<c:if test="${emp.employeeWorkers=='护师'}">selected='true'</c:if> value="护士">护师</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>护士执照编号 ：</label>
									<div class="kv-item-content">
										<input name="employeeLicenseNumber" id="employeeLicenseNumber" placeholder="护士执照编号"
											type="text" onkeyup="this.value=this.value.replace(/\D/g,'')" value="${emp.employeeLicenseNumber}">
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>学历 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeEducation" name="employeeEducation">
											<!-- <option value="本科">本科</option>
											<option value="专科">专科</option>
											<option value="高中">高中</option>
											<option value="研究生">研究生</option> -->
											<option
												<c:if test="${emp.employeeEducation=='本科'}">selected='true'</c:if> value="本科">本科</option>
											<option
												<c:if test="${emp.employeeEducation=='专科'}">selected='true'</c:if> value="专科">专科</option>
											<option
												<c:if test="${emp.employeeEducation=='高中'}">selected='true'</c:if> value="高中">高中</option>
											<option
												<c:if test="${emp.employeeEducation=='研究生'}">selected='true'</c:if> value="研究生">研究生</option>
										</select>
									</div>
								</div>
								</div>

								<div id="aaa2">
								    <div class="kv-item clearfix">
									<label>员工电话 ：</label>
									<div class="kv-item-content">
										<input name="employeeTel" id="employeeTel" placeholder="员工电话"
											type="text" value="${emp.employeeTel}"
											onkeyup="this.value=this.value.replace(/\D/g,'')">
									</div>
								</div>

								<%--<div class="kv-item clearfix">--%>
									<%--<label>员工年龄 ：</label>--%>
									<%--<div class="kv-item-content">--%>
										<%--<input name="employeeAge" id="employeeAge" placeholder="员工年龄"--%>
											<%--type="text" value="${emp.employeeAge}">--%>
									<%--</div>--%>
								<%--</div>--%>

								<%--<div class="kv-item clearfix">--%>
									<%--<label>员工身份证号：</label>--%>
									<%--<div class="kv-item-content">--%>
										<%--<input name="employeeIdcard" id="employeeIdcard"--%>
											<%--placeholder="请真实填写" type="text" value="${emp.employeeIdcard}"--%>
											<%--onkeyup="this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')">--%>
									<%--</div>--%>
								<%--</div>--%>

								<div class="kv-item  dataSel  clearfix">
									<label>员工所属科室：</label>
									<div class="kv-item-content">
										<select class="empty" id="departmentId" name="departmentId">
											<c:forEach items="${departmentList}" var="dep">
												<option value="${dep.departmentId}"
													<c:if test="${dep.departmentId==emp.departmentId}">selected="true"</c:if>>${dep.departmentName}</option>
											</c:forEach>
										</select>
									</div>
								</div>

								<%-- <div class="kv-item  dataSel  clearfix">
									<label>员工类型：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeType" name="employeeType">
											<option
												<c:if test="${emp.employeeType==1}">select='selected'</c:if>
												value="1">医生</option>
											<option
												<c:if test="${emp.employeeType==2}">select='selected'</c:if>
												value="2">护士</option>
											<option
												<c:if test="${emp.employeeType==3}">select='selected'</c:if>
												value="3">护士长</option>
											<option
												<c:if test="${emp.employeeType==4}">select='selected'</c:if>
												value="4">麻醉师</option>
											<option
												<c:if test="${emp.employeeType==5}">select='selected'</c:if>
												value="5">其他</option>
										</select>
									</div>
								</div> --%>

								<div class="kv-item  dataSel  clearfix">
									<label>员工性别：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeSex" name="employeeSex">
											<option
												<c:if test="${emp.employeeSex==1}">selected='true'</c:if>
												value="1">男</option>
											<option
												<c:if test="${emp.employeeSex==2}">selected='true'</c:if>
												value="2">女</option>
										</select>
									</div>
								</div>
								<div class="kv-item clearfix">
									<label>应急电话：</label>
									<div class="kv-item-content">
										<input name="employeePossibletel" id="employeePossibletel"
											placeholder="应急电话" type="text"
											value="${emp.employeePossibletel}"
											onkeyup="this.value=this.value.replace(/\D/g,'')">
									</div>
								</div>

								<div class="kv-item  dataSel  clearfix">
									<label>员工是否可以授权：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeAuth" name="employeeAuth">
											<option
												<c:if test="${emp.employeeAuth==1}">selected='true'</c:if>
												value="1">可以</option>
											<option
												<c:if test="${emp.employeeAuth==0}">selected='true'</c:if>
												value="0">不可以</option>
										</select>
									</div>
								</div>

								<%--<div class="kv-item clearfix">--%>
									<%--<label>家庭住址：</label>--%>
									<%--<div class="kv-item-content">--%>
										<%--<input name="employeeAddress" id="employeeAddress"--%>
											<%--placeholder="家庭住址" type="text" value="${emp.employeeAddress}"--%>
											<%--onkeyup="this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')">--%>
									<%--</div>--%>
								<%--</div>--%>

								<div class="kv-item  dataSel  clearfix">
									<label>是否借调其他科室：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeWorkstate" name="employeeWorkstate">
											<option
												<c:if test="${emp.employeeWorkstate==0}">selected='true'</c:if>
												value="0">否</option>
											<option
												<c:if test="${emp.employeeWorkstate==1}">selected='true'</c:if>
												value="1">是</option>
										</select>
									</div>
								</div>

								<div class="kv-item  dataSel  clearfix">
									<label>借调科室：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeWorkid" name="employeeWorkid">
											<c:forEach items="${departmentList}" var="dep">
												<option value="${dep.departmentId}"
													<c:if test="${dep.departmentId==emp.departmentId}">selected='true'</c:if>>${dep.departmentName}</option>
											</c:forEach>
										</select>
									</div>
								</div>

								<div class="kv-item  dataSel  clearfix">
									<label>员工状态：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeState" name="employeeState">
											<option
												<c:if test="${emp.employeeState==1}">selected='true'</c:if> value="1">正常</option>
											<option
												<c:if test="${emp.employeeState==0}">selected='true'</c:if> value="0">冻结</option>
										</select>
									</div>
								</div>

								<%-- <div class="kv-item clearfix">
									<label>员工学历：</label>
									<div class="kv-item-content">
										<input name="employeeMajor" id="employeeMajor"
											placeholder="如高中，本科" type="text" value="${emp.employeeMajor}"
											onkeyup="this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')">
									</div>
								</div> --%>

								<div class="kv-item clearfix">
									<label>员工图片 ：</label>
									<div class="kv-item-content">
										<input type="hidden" name="employeePic" id="employeePic"
											value="${emp.employeePic}" /> <input type="file"
											name="upPicFile" id="upPicFile" value=""> <input
											type="button" id="uploadPic" value="上传" />
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>鞋子尺码 ：</label>
									<div class="kv-item-content">
										<input name="employeeFootSize" id="employeeFootSize"
											placeholder="鞋子尺码" type="text" value="${emp.employeeFootSize}"
											onkeyup="this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"/>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>上衣尺码 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeGarmentSize" name="employeeGarmentSize">
											<!-- <option value="S">S</option>
											<option value="M">M</option>
											<option value="L">L</option>
											<option value="XL">XL</option> -->
											<option
												<c:if test="${emp.employeeGarmentSize=='S'}">selected='true'</c:if> value="S">S</option>
											<option
												<c:if test="${emp.employeeGarmentSize=='M'}">selected='true'</c:if> value="M">M</option>
												<option
												<c:if test="${emp.employeeGarmentSize=='L'}">selected='true'</c:if> value="L">L</option>
											<option
												<c:if test="${emp.employeeGarmentSize=='XL'}">selected='true'</c:if> value="XL">XL</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>下装尺码 ：</label>
									<div>
										<select class="empty" id="employeeTrousersSize" name="employeeTrousersSize">
											<!-- <option value="S">S</option>
											<option value="M">M</option>
											<option value="L">L</option>
											<option value="XL">XL</option> -->
											<option
												<c:if test="${emp.employeeTrousersSize=='S'}">selected='true'</c:if> value="S">S</option>
											<option
												<c:if test="${emp.employeeTrousersSize=='M'}">selected='true'</c:if> value="M">M</option>
												<option
												<c:if test="${emp.employeeTrousersSize=='L'}">selected='true'</c:if> value="L">L</option>
											<option
												<c:if test="${emp.employeeTrousersSize=='XL'}">selected='true'</c:if> value="XL">XL</option>
										</select>
									</div>
								</div>

								<div class="kv-item clearfix">
									<label>毛衣尺码 ：</label>
									<div class="kv-item-content">
										<select class="empty" id="employeeSweaterSize" name="employeeSweaterSize">
											<!-- <option value="S">S</option>
											<option value="M">M</option>
											<option value="L">L</option>
											<option value="XL">XL</option> -->
											<option
												<c:if test="${emp.employeeSweaterSize=='S'}">selected='true'</c:if> value="S">S</option>
											<option
												<c:if test="${emp.employeeSweaterSize=='M'}">selected='true'</c:if> value="M">M</option>
												<option
												<c:if test="${emp.employeeSweaterSize=='L'}">selected='true'</c:if> value="L">L</option>
											<option
												<c:if test="${emp.employeeSweaterSize=='XL'}">selected='true'</c:if> value="XL">XL</option>
										</select>
									</div>
								</div>
								</div>
							</div>

							<div class="tab-content-item">
								<ul class="login-times">
									<c:if test="${treeModule != null}">
										<c:forEach items="${treeModule}" var="treeModule">
											<li><strong>
													${treeModule.moduleName}:&nbsp;&nbsp;&nbsp;&nbsp; 
												</strong> 
												<c:forEach items="${treeMap[treeModule.moduleId]}" var="treeModule1">
													<label>
													    <input value="${treeModule1.moduleId}" ${treeModule1.checked} name="key" type="checkbox" /> 
													    <span class="checkboxmn"></span>${treeModule1.moduleName}
													</label>
												</c:forEach>
												<input style="float: right" class="quanxuan" type="checkbox">
												<span style="float: right">全选：</span>
											</li>

										</c:forEach>
									</c:if>
								</ul>
							</div>
						</div>
					</div>
					<div class="buttons">
						<a href="javascript:;" class="sapar-btn sapar-btn-recom">确定</a> 
					</div>
					<div class="buttons">
						<input type="hidden" name="employeeId" value="${emp.employeeId}" /> 
					</div>
					
					<div class="buttons">
						<input type="hidden" name="employeeNo" id="employeeNo" value="${emp.employeeNo}" /> 
					</div>
				</form>
			</div>
		</div>
		<div id="saper-ft"></div>
	</div>
	<script src="${ctx}/js/ajaxfileupload.js"></script>
<script type="text/javascript">
function isNullOrEmpty(strVal){
	strVal = strVal.replace(/(^\s*)|(\s*$)/g,"");
	if(strVal == '' || strVal == null || strVal == undefined){
		return true;
	}else{
		return false;
	}
}

$(function(){
	$(".sapar-btn-recom").click(function(){
	     var aa = $("#employeeName").val();
	     console.log(aa);
		 var btn = true;
        btn = $("input[type='checkbox']").is(':checked');
        if(!btn){
            layer.msg("必须选择一个菜单");
            btn = false;
            return false;
        }
		 $(".txt_required").each(function(){
			 var str =$(this).val();
			 debugger
			 if(isNullOrEmpty(str)){
				 btn = false;
				 layer.msg("必填项不为空");
				 return false;
			 }
		 });

		 if(btn){
    		$.ajax({
                 type: "POST",
                 url:"${ctx}/employee/empSave.do",
//                 dateType:"json",
//				 contentType: "application/json;charset=utf-8",
	             data:$('#dataForm').serialize(),// 你的formid
	             error: function(request) {
                     console.log($('#dataForm').serialize());
					 layer.alert("网络故障，请稍后再试!");
	             },
	             success: function(data) {
                    console.log($('#dataForm').serialize());
	 	           	if(data.status=="true"){
		 	           	layer.alert("保存成功", function(){
		 	           		window.location.href="${ctx}/employee/empList.do";
	           		    });
	 	           	}else{
	 	           		 layer.msg(data.msg);
	 	           	}
	             }
	         });
		 }
	});
	
	$('#employeeName').change(function(){
		var employeeName = $('#employeeName').val();
		/*速记码生成器  */
		$.ajax({
			url:"${ctx}/eng/cn2en.do?prefix=1&msg="+employeeName,
			dateType:"json",
			type:"post",
			success:function(data){
				if(data.status == "true"){
					 $("#employeeCode").val(data.msg);
				}else{
					 layer.msg("速记码转换异常");
				}
			}
		});
	});
	
	$(".quanxuan").click(function () {
	    var that = this;

	    var flag = $(that).prop("checked");
	    if(flag){
            $(that).parent().find("input[type=checkbox]").prop("checked",true);
		}else{
            $(that).parent().find("input[type=checkbox]").prop("checked",false);
		}




    })
	
	$("#uploadPic").click(function () {
 		 if($("#upPicFile").val()==''){
 			 layer.msg("请选择图片");
			 return false;
 		 }
       ajaxFileUpload();
  });
});

function ajaxFileUpload() {
    $.ajaxFileUpload
    (
        {
            url: '${ctx}/upload/filesUploadPics.do', //用于文件上传的服务器端请求地址
            secureuri: false, //是否需要安全协议，一般设置为false
            fileElementId: 'upPicFile', //文件上传域的ID
            dataType: 'json', //返回值类型 一般设置为json
            success: function (data, status)  //服务器成功响应处理函数
            {
            	var msg = data.message;
            	if(data.error==1){
            		$("#employeePic").val(msg);
            		layer.alert('上传成功', {
	                	    skin: 'layui-layer-lan'
	                	    ,closeBtn: 0
	                	    ,shift: 4 //动画类型
	                    });
            	}else{
            		layer.alert('上传失败,'+msg, {
	                	    skin: 'layui-layer-lan'
	                	    ,closeBtn: 0
	                	    ,shift: 4 //动画类型
	                    });
            	}
            	
            },
            error: function (data, status, e)//服务器响应失败处理函数
            {
                alert("上传失败");
            }
        }
    )
    return false;
}

$('select').iSelect();
</script>
</body>
</html>